package io.github.wanggit.antrpc.commons.utils;

public abstract class Utils {

    private Utils() {
        throw new IllegalStateException();
    }

    public static String classMethodFullName(String className, String methodFullName) {
        return className + "#" + methodFullName;
    }

    /**
     * 获取当前 微秒
     *
     * @return 微秒
     */
    public static long currentSystemMicroSecond() {
        long cutime = System.currentTimeMillis(); // 微秒
        long nanoTime = System.nanoTime(); // 纳秒
        return (cutime * 1000) + (nanoTime - nanoTime / 1000000 * 1000000) / 1000;
    }
}
